<template>
    <view>
       <live-pusher id='livePusher' ref="livePusher" class="livePusher" url=""
        mode="SD" :muted="true" :enable-camera="true" :auto-focus="true" :beauty="1" whiteness="2"
        aspect="9:16" 
        ></live-pusher>
        <!-- <button class="btn" @click="snapshot">快照</button> -->
        <!-- <button class="btn" @click="switchCamera">切换摄像头</button> -->
		<view class="" >
			
			这是我的数据{{a}}
		</view>
    </view>
</template>

<script setup lang="ts">  
import { reactive, ref, onReady, nextTick, getCurrentInstance } from 'vue';  

let a =  uni.createLivePusherContext('livePusher',getCurrentInstance().proxy) 

</script>

 
<style lang="scss" scoped>
	.img-data {
		width: 100%;
		height: auto;
	}
</style>